<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>支付设置</title>
    {template 'stourtravel/public/public_min_js'}
    {Common::getCss('style.css,base.css,base_new.css')}
    {Common::getScript('jquery.upload.js')}
</head>
<body>

<table class="content-tab">
    <tr>
        <td width="119px" class="content-lt-td"  valign="top">
            {template 'stourtravel/public/leftnav'}
            <!--右侧内容区-->
        </td>
        <td valign="top" class="content-rt-td">
            <div class="cfg-header-bar">
                <a href="javascript:;" class="fr btn btn-primary radius mt-6 mr-10" onclick="window.location.reload()">刷新</a>
            </div>
            <div class="clear clearfix">
                <form id="frm">
                    <div class="pay-container" >
                        <ul class="info-item-block">
                            <li>
                                <span class="item-hd">是否开启：</span>
                                <div class="item-bd">
                                    <label class="radio-label"><input type="radio" name="cfg_ebooking_is_open" value="1" {if $config['cfg_ebooking_is_open']==1}checked="checked"{/if}/>开启</label>
                                    <label class="radio-label ml-20"><input type="radio" name="cfg_ebooking_is_open" value="0" {if $config['cfg_ebooking_is_open']!=1}checked="checked"{/if}/>关闭</label>
                                </div>
                            </li>
                            <li>
                                <span class="item-hd">域名：</span>
                                <div class="item-bd">
                                    <input name="cfg_ebooking_domain_name" type="text" value="{$config['cfg_ebooking_domain_name']}" class="input-text w300">
                                    <span class="item-text c-999 ml-10"></span>
                                </div>
                            </li>
                        </ul>
                    </div>
                    <div class="clear clearfix mt-20">
                        <a class="btn btn-primary radius size-L ml-115" href="javascript:;" id="btn_save">保存</a>
                    </div>
                </form>
            </div>
        </td>
    </tr>
</table>

<script>
    $(document).ready(function(){
        $("#btn_save").click(function(){
            $.ajaxform({
                url   :  SITEURL+"ebooking/ajax_save",
                method  :  "POST",
                form  : "#frm",
                dataType:'json',
                success  :  function(data)
                {
                    if(data.status)
                    {
                        ST.Util.showMsg('保存成功!','4',2000);
                    }
                    else
                    {
                        ST.Util.showMsg(data.msg,'5',2000);
                    }
                }
            });
        });
    });
</script>

</body>
</html>
